<?php
namespace app\model;
use think\Model;

class User extends Model{
    public function userType()
    {
        return $this->hasOne('UserType','id','user_type_id');
    }

    public function pids()
    {
        return $this->hasMany('Pid','uid','id');
    }

    public function userBankcard()
    {
        return $this->belongsTo('Bankcard','id','uid');
    }
}
